package com.laima.basic.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laima.basic.utils.poi.ExcelAttribute;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 * @author
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "sys_logininfor", description = "系统访问记录")
public class SysLogininfor implements Serializable {
    /**
     * 访问ID
     */
    @ExcelAttribute(name = "ID")
    @ApiModelProperty(value = "访问id")
    private Long infoId;

    /**
     * 用户账号
     */
    @ExcelAttribute(name = "用户账号", isMark = true)
    @ApiModelProperty(value = "用户账号")
    private String userName;

    /**
     * 登录IP地址
     */
    @ExcelAttribute(name = "登陆ip", isMark = true)
    @ApiModelProperty(value = "登陆ip")
    private String ipaddr;

    /**
     * 登录地点
     */
    @ExcelAttribute(name = "登陆地点", isMark = true)
    @ApiModelProperty(value = "登陆地点")
    private String loginLocation;

    /**
     * 浏览器类型
     */
    @ExcelAttribute(name = "浏览器类型", isMark = true)
    @ApiModelProperty(value = "浏览器类型")
    private String browser;

    /**
     * 操作系统
     */
    @ExcelAttribute(name = "操作系统", isMark = true)
    @ApiModelProperty(value = "操作系统")
    private String os;

    /**
     * 登录状态（0成功 1失败）
     */
    @ExcelAttribute(name = "登录状态", isMark = true)
    @ApiModelProperty(value = "登录状态")
    private String status;

    /**
     * 提示消息
     */
    @ExcelAttribute(name = "提示消息", isMark = true)
    @ApiModelProperty(value = "提示消息")
    private String msg;

    /**
     * 访问时间
     */
    @ExcelAttribute(name = "访问时间", isMark = true)
    @ApiModelProperty(value = "访问时间")
    private Date loginTime;

}
